<%-- 
    Document   : login
    Created on : 19-gen-2015, 11.31.43
    Author     : Jov
--%>

<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
    </head>
    <body>
        <%
            session.setAttribute("year", null);
            session.setAttribute("month", null);
            session.setAttribute("offset", null);
            session.setAttribute("user", null);
            session.setAttribute("user_id", null);
        %>
        <h1>Please login...</h1>
        <form method="POST" action="actions/checkLogin.jsp">
            <input type="text" name="user" placeholder="username"><br>
            <input type="text" name="password" placeholder="password"><br>
            <input type="submit">
        </form>
        <h1>...or get registered!</h1>
        <form method="POST" action="actions/newLogin.jsp">
            <input type="text" name="user" placeholder="username"><br>
            <input type="text" name="password" placeholder="password"><br>
            <input type="text" name="firstName" placeholder="first name"><br>
            <input type="text" name="lastName" placeholder="last name"><br>
            <input type="text" name="email" placeholder="email"><br>
            <input type="submit">
        </form>
    </body>
</html>
